import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';

const routes: Routes = [
    {
      path:"accounts",
      loadChildren:"./accounts/accounts.module#AccountsModule"
    },
    {
      path:"authority-config",
      loadChildren:"./authority-config/authority-config.module#AuthorityConfigModule"
    },
    {
      path:"menus",
      loadChildren:"./menus/menus.module#MenusModule"
    },
    {
      path:"portals",
      loadChildren:"./portals/portals.module#PortalsModule"
    },
    {
      path:"resources",
      loadChildren:"./resources/resources.module#ResourcesModule"
    },
    {
      path:"roles",
      loadChildren:"./roles/roles.module#RolesModule"
    },
    {
      path:"themes",
      loadChildren:"./themes/themes.module#ThemesModule"
    }

];

@NgModule({
  imports: [RouterModule.forChild(routes)],
  exports: [RouterModule],
  providers: []
})
export class PermissionRoutingModule { }
